package com.bw.ppx.app;

import com.alibaba.android.arouter.launcher.ARouter;
import com.bw.baseapplication_sdk.BaseApplication;
import com.bw.glide_sdk.GlideApp;
import com.bw.ppx.frame.appconfig.AppConfig;
import com.bw.umeng_sdk.UMengManager;
import com.bw.umeng_sdk.UmengConst;
import com.meituan.android.walle.WalleChannelReader;
import com.umeng.analytics.MobclickAgent;
import com.umeng.commonsdk.UMConfigure;
import com.umeng.socialize.PlatformConfig;

public class App extends BaseApplication {
    @Override
    public void onCreate() {
        super.onCreate();
        ARouter.openDebug();
        ARouter.openLog();
        ARouter.init(this);
        AppConfig.getInstance();


        //调佣初始化umeng方法
        UMengManager.getInstance().initUMeng(this);
    }

    //内存检测   当前是否在低内存环境下使用
    @Override
    public void onTrimMemory(int level) {
        super.onTrimMemory(level);
        if (level == TRIM_MEMORY_RUNNING_LOW) {
            GlideApp.get(this).clearMemory();
        }
    }
}
